//
// Created by ins on 2021/2/27.
//

#ifndef SERVICE_PLAYERBEAN_H
#define SERVICE_PLAYERBEAN_H
#include <iostream>
#include <string>

using std::string;
class PlayerBean {

private:
    string name;
    string uid;
    string sid;
    string greder;
    string lv;
    string yxb;
    string czb;
    string exp;
    string maxExp;
    string hp;
    string maxHp;
    string attack;
    string defence;
    string baoji;
    string xixue;
    string wuxing;
    string vip;
    string nowMid;
    string endTime;
    string tool1;
    string tool2;
    string tool3;
    string tool4;
    string tool5;
    string tool6;
    string jingjie;
    string isOnline;
    string sfxl;
    string yp1;
    string yp2;
    string yp3;
    string jn1;
    string jn2;
    string jn3;
    string ispvp; //map ?
    string cengci = "";
    string cw = "";

public:
    PlayerBean() {}

    PlayerBean(const string &name, const string &uid, const string &sid, const string &greder, const string &lv,
               const string &yxb, const string &czb, const string &exp, const string &maxExp, const string &hp,
               const string &maxHp, const string &attack, const string &defence, const string &baoji,
               const string &xixue, const string &wuxing, const string &vip, const string &nowMid,
               const string &endTime, const string &tool1, const string &tool2, const string &tool3,
               const string &tool4, const string &tool5, const string &tool6, const string &jingjie,
               const string &isOnline, const string &sfxl, const string &yp1, const string &yp2, const string &yp3,
               const string &jn1, const string &jn2, const string &jn3, const string &ispvp, const string &cengci,
               const string &cw): name(name), uid(uid), sid(sid), greder(greder), lv(lv), yxb(yxb), czb(czb), exp(exp), maxExp(maxExp),
              hp(hp), maxHp(maxHp), attack(attack), defence(defence), baoji(baoji), xixue(xixue), wuxing(wuxing),
              vip(vip), nowMid(nowMid), endTime(endTime), tool1(tool1), tool2(tool2), tool3(tool3), tool4(tool4),
              tool5(tool5), tool6(tool6), jingjie(jingjie), isOnline(isOnline), sfxl(sfxl), yp1(yp1), yp2(yp2),
              yp3(yp3), jn1(jn1), jn2(jn2), jn3(jn3), ispvp(ispvp), cengci(cengci), cw(cw){}

    const string &getName() const {
        return name;
    }

    void setName(const string &name) {
        PlayerBean::name = name;
    }

    const string &getUid() const {
        return uid;
    }

    void setUid(const string &uid) {
        PlayerBean::uid = uid;
    }

    const string &getSid() const {
        return sid;
    }

    void setSid(const string &sid) {
        PlayerBean::sid = sid;
    }

    const string &getGreder() const {
        return greder;
    }

    void setGreder(const string &greder) {
        PlayerBean::greder = greder;
    }

    const string &getLv() const {
        return lv;
    }

    void setLv(const string &lv) {
        PlayerBean::lv = lv;
    }

    const string &getYxb() const {
        return yxb;
    }

    void setYxb(const string &yxb) {
        PlayerBean::yxb = yxb;
    }

    const string &getCzb() const {
        return czb;
    }

    void setCzb(const string &czb) {
        PlayerBean::czb = czb;
    }

    const string &getExp() const {
        return exp;
    }

    void setExp(const string &exp) {
        PlayerBean::exp = exp;
    }

    const string &getMaxExp() const {
        return maxExp;
    }

    void setMaxExp(const string &maxExp) {
        PlayerBean::maxExp = maxExp;
    }

    const string &getHp() const {
        return hp;
    }

    void setHp(const string &hp) {
        PlayerBean::hp = hp;
    }

    const string &getMaxHp() const {
        return maxHp;
    }

    void setMaxHp(const string &maxHp) {
        PlayerBean::maxHp = maxHp;
    }

    const string &getAttack() const {
        return attack;
    }

    void setAttack(const string &attack) {
        PlayerBean::attack = attack;
    }

    const string &getDefence() const {
        return defence;
    }

    void setDefence(const string &defence) {
        PlayerBean::defence = defence;
    }

    const string &getBaoji() const {
        return baoji;
    }

    void setBaoji(const string &baoji) {
        PlayerBean::baoji = baoji;
    }

    const string &getXixue() const {
        return xixue;
    }

    void setXixue(const string &xixue) {
        PlayerBean::xixue = xixue;
    }

    const string &getWuxing() const {
        return wuxing;
    }

    void setWuxing(const string &wuxing) {
        PlayerBean::wuxing = wuxing;
    }

    const string &getVip() const {
        return vip;
    }

    void setVip(const string &vip) {
        PlayerBean::vip = vip;
    }

    const string &getNowMid() const {
        return nowMid;
    }

    void setNowMid(const string &nowMid) {
        PlayerBean::nowMid = nowMid;
    }

    const string &getEndTime() const {
        return endTime;
    }

    void setEndTime(const string &endTime) {
        PlayerBean::endTime = endTime;
    }

    const string &getTool1() const {
        return tool1;
    }

    void setTool1(const string &tool1) {
        PlayerBean::tool1 = tool1;
    }

    const string &getTool2() const {
        return tool2;
    }

    void setTool2(const string &tool2) {
        PlayerBean::tool2 = tool2;
    }

    const string &getTool3() const {
        return tool3;
    }

    void setTool3(const string &tool3) {
        PlayerBean::tool3 = tool3;
    }

    const string &getTool4() const {
        return tool4;
    }

    void setTool4(const string &tool4) {
        PlayerBean::tool4 = tool4;
    }

    const string &getTool5() const {
        return tool5;
    }

    void setTool5(const string &tool5) {
        PlayerBean::tool5 = tool5;
    }

    const string &getTool6() const {
        return tool6;
    }

    void setTool6(const string &tool6) {
        PlayerBean::tool6 = tool6;
    }

    const string &getJingjie() const {
        return jingjie;
    }

    void setJingjie(const string &jingjie) {
        PlayerBean::jingjie = jingjie;
    }

    const string &getIsOnline() const {
        return isOnline;
    }

    void setIsOnline(const string &isOnline) {
        PlayerBean::isOnline = isOnline;
    }

    const string &getSfxl() const {
        return sfxl;
    }

    void setSfxl(const string &sfxl) {
        PlayerBean::sfxl = sfxl;
    }

    const string &getYp1() const {
        return yp1;
    }

    void setYp1(const string &yp1) {
        PlayerBean::yp1 = yp1;
    }

    const string &getYp2() const {
        return yp2;
    }

    void setYp2(const string &yp2) {
        PlayerBean::yp2 = yp2;
    }

    const string &getYp3() const {
        return yp3;
    }

    void setYp3(const string &yp3) {
        PlayerBean::yp3 = yp3;
    }

    const string &getJn1() const {
        return jn1;
    }

    void setJn1(const string &jn1) {
        PlayerBean::jn1 = jn1;
    }

    const string &getJn2() const {
        return jn2;
    }

    void setJn2(const string &jn2) {
        PlayerBean::jn2 = jn2;
    }

    const string &getJn3() const {
        return jn3;
    }

    void setJn3(const string &jn3) {
        PlayerBean::jn3 = jn3;
    }

    const string &getIspvp() const {
        return ispvp;
    }

    void setIspvp(const string &ispvp) {
        PlayerBean::ispvp = ispvp;
    }

    const string &getCengci() const {
        return cengci;
    }

    void setCengci(const string &cengci) {
        PlayerBean::cengci = cengci;
    }

    const string &getCw() const {
        return cw;
    }

    void setCw(const string &cw) {
        PlayerBean::cw = cw;
    }


    string toString(){
        return "{"
               "\"uname\":\"" + name + "\"" +
               ", \"uid\":\"" + uid + "\"" +
               ", \"sid\":\"" + sid + "\"" +
               ", \"ulv\":" + lv +
               ", \"uyxb\":" + yxb +
               ", \"uczb\":" + czb +
               ", \"uexp\":" + exp +
               ", \"umaxexp\":" + maxExp +
               ", \"uhp\":" + hp +
               ", \"umaxhp\":" + maxHp +
               ", \"ugj\":" + attack +
               ", \"ufy\":" + defence +
               ", \"ubj\":" + baoji +
               ", \"uxx\":" + xixue +
               ", \"uwx\":" + wuxing +
               ", \"usex\":\"" + greder + "\"" +
               ", \"tool1\":" + tool1 +
               ", \"tool2\":" + tool2 +
               ", \"tool3\":" + tool3 +
               ", \"tool4\":" + tool4 +
               ", \"tool5\":" + tool5 +
               ", \"tool6\":" + tool6 +
               ", \"yp1\":" + yp1 +
               ", \"yp2\":" + yp2 +
               ", \"yp3\":" + yp3 +
               ", \"jn1\":" + jn1 +
               ", \"jn2\":" + jn2 +
               ", \"jn3\":" + jn3 +
               ", \"jingjie\":\"" + jingjie + "\"" +
               ", \"sfxl\":" + sfxl +
               ", \"sfzx\":" + isOnline +
               ", \"ispvp\":" + ispvp +
               ", \"vip\":" + vip +
               ", \"nowmid\":" + nowMid +
               ", \"endtime\":\"" + endTime + "\"" +
               ", \"cw\":" + cw +
               '}';
    }

};


#endif //SERVICE_PLAYERBEAN_H
